package com.kx.demo.jdk.collection;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.TreeSet;

/**
 * @author kx
 * @date 2020/4/11
 */
public class SetDemo {

    public static void main(String[] args) {
        Set<String> set = new HashSet<>();
        set.add("li");
        set.add("fw");
        set.add("l");
        System.out.println(set);

        LinkedHashSet<String> linkedHashSet = new LinkedHashSet<>();
        linkedHashSet.add("li");
        linkedHashSet.add("fw");
        linkedHashSet.add("l");
        System.out.println(linkedHashSet);

        TreeSet<String> treeSet = new TreeSet<>();
    }

}
